//app.js
App({
  //全局的变量
  globalData: {
    userInfo: null
  },

  onLaunch: function () {
    // 展示本地存储能力

    console.log('onLaunch')
  },

  onShow : function (){

    console.log('onShow')
  },
  onHide : function (){

    console.log('onHide')
  },
  onError :function (){
    console.log('onError')
  },

  onPageNotFound : function (){

    console.log('onPageNotFound')
  }
})